﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevToolBox.Cloud.Common;
using DevToolBox.Cloud.Factory;
using System.Data;

namespace DevToolBox.Cloud.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            //TODO: pulir el API  hacer los query/scan

            IManageable manageObj = CloudFactory.BuildTableOperations();
            TableInfo tableMetaData = new TableInfo("thisisdeleteme", "key", "range");
            manageObj.Create(tableMetaData);

            ITableCommand tableClient = CloudFactory.BuildTableTransactions();
            Dictionary<string, object> etityValues=new Dictionary<string,object>();
            Dictionary<string, DbType> etityMetaData=new Dictionary<string,DbType>();
            etityValues.Add(TableInfo.HashKeyName, "1");
            etityMetaData.Add(TableInfo.HashKeyName, DbType.String);
            RowEntity entity=new RowEntity("deleteme", etityValues, etityMetaData);
            tableClient.Save(entity);
        }
    }
}
